# Contributor: sick <sick@rape.lol>
# Maintainer: sick <sick@rape.lol>
pkgname=xsel
pkgver=1.2.0
pkgrel=0
pkgdesc="A command-line program for getting and setting the contents of the X selection"
url="http://www.kfish.org/software/xsel/"
arch="all"
license="Custom"
depends="libxt"
makedepends="$depends-dev"
subpackages="$pkgname-doc"
source="http://www.kfish.org/software/xsel/download/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure --prefix=/usr
	make || return 1
}

check() {
	cd "$builddir"
	make check || return 1
}

package() {
	cd "$builddir"
	make DESTDIR=$pkgdir install || return 1
}

sha512sums="e28623e6cc180f2e2210c20697d21d336633f0a5272ca9b62150a1c535e8de89731acc07230a9977e391e37d3943a9d687f1f967765a15bca5092a6c6d8c4d8f  xsel-1.2.0.tar.gz"
